xen: arm: handle traps of conditional instructions.
authorIan Campbell <ian.campbell@citrix.com>
Mon, 29 Jul 2013 16:08:57 +0000 (17:08 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 2 Aug 2013 15:28:15 +0000 (16:28 +0100)
commit173b9f1958fe01a3df61cfee009831d0c21217c5
tree46f7c697fba6361b1e033f19c637528f1048aa66
parente7cf6219b48eaa38d91fb46513a951158e87c3aa
xen: arm: handle traps of conditional instructions.

This means handling the HSR.ccvalid field as well as correctly processing the
Thumb If-Then state block in the CPSR correctly which is rather tricky. KVM
provided a useful reference for all this.

I suspect we aren't actually hitting these paths very often since the sorts of
traps we take will not often be conditional so my limited testing may not
actually be exercising these paths very much.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.linaro.org>
xen/arch/arm/traps.c
xen/include/asm-arm/processor.h